﻿// =================================================================== 
// 项目说明,功能实体类,用CodeSmith自动生成。
// =================================================================== 
// 文件名: SiteLinkEntity.cs
// 修改时间：2020-9-8 10:40:09
// 修改人: lixiong
// =================================================================== 
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using JX.Infrastructure.Attribute;
using JX.Infrastructure.Common;

namespace JX.Core.Entity
{
	/// <summary>
	/// 数据库表：SiteLink 的实体类.
	/// </summary>
	[Table("SiteLink")]
	public partial class SiteLinkEntity
	{
		#region Properties
		private int? _insideLinkID = 0;
		/// <summary>
		/// 站内连接ID(主键)(自增长)
		/// </summary>
		[Column("InsideLinkID",TypeName="int")]
		[Key]
		[MyFlag("Identity")]
		public int? InsideLinkID
		{
			get {return _insideLinkID;}
			set {_insideLinkID = value;}
		}
		
		private System.String _source = string.Empty;
		/// <summary>
		/// 替换目标
		/// </summary>
		[Column("Source",TypeName="nvarchar(250)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Source
		{
			get {return _source;}
			set {_source = value;}
		}
		
		private System.String _replaceUrl = string.Empty;
		/// <summary>
		/// 替换后地址
		/// </summary>
		[Column("ReplaceUrl",TypeName="nvarchar(250)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String ReplaceUrl
		{
			get {return _replaceUrl;}
			set {_replaceUrl = value;}
		}
		
		private int? _priority = 0;
		/// <summary>
		/// 优先级
		/// </summary>
		[Column("Priority",TypeName="int")]
		public int? Priority
		{
			get {return _priority;}
			set {_priority = value;}
		}
		
		private int? _replaceTimes = 0;
		/// <summary>
		/// 替换次数
		/// </summary>
		[Column("ReplaceTimes",TypeName="int")]
		public int? ReplaceTimes
		{
			get {return _replaceTimes;}
			set {_replaceTimes = value;}
		}
		
		private System.Boolean _isNewOpen = false;
		/// <summary>
		/// 打开模式
		/// </summary>
		[Column("IsNewOpen",TypeName="bit")]
		public System.Boolean IsNewOpen
		{
			get {return _isNewOpen;}
			set {_isNewOpen = value;}
		}
		
		private System.Boolean _isEnabled = false;
		/// <summary>
		/// 是否启用
		/// </summary>
		[Column("IsEnabled",TypeName="bit")]
		public System.Boolean IsEnabled
		{
			get {return _isEnabled;}
			set {_isEnabled = value;}
		}
		
		#endregion
	}
}
